package com.sh4.dao.impl;

import org.springframework.stereotype.Repository;

import com.sh4.dao.RolePermissionDao;
import com.sh4.entity.RolePermission;

@Repository
public class RolePermissionDaoImpl extends BaseDaoImpl<RolePermission> implements RolePermissionDao {

	@Override
	public RolePermission queryRp(String roleId) {
		
		String hql = "from RolePermission p where p.roleId = ?";
		
		return this.getByHql(hql, roleId);
	}


}
